package com.itheima.dao;

import com.itheima.domain.Student;

import java.util.ArrayList;

public interface IStudentDao {
    //增
    void  addStudent(Student student);

    //删
    void deleteStudent(String sid);

    //改
    void updateStudent(String sid,Student newStu);

    //查
    ArrayList<Student> findAllStudents();

    // 根据条件查   根据学号找索引
    int  getIndex(String sid);

}
